import numpy as np
p1 = np.random.permutation(9)

print(p1)
i = np.random.randint(len(p1))
j = np.random.randint(len(p1))
print(i,j)
p1[i],p1[j] = p1[j],p1[i]
print(p1)
